<?php

namespace ApiBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * UserArticle
 *
 * @ORM\Table(name="user_article", options={"comment":"user_article表"})
 * @ORM\Entity
 */
class UserArticle
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="user_id", type="integer", options={"default":"0", "comment":"用户id"})
     */
    private $userId;

    /**
     * @var string
     *
     * @ORM\Column(name="article_id", type="integer", options={"default":"0", "comment":"文章id"})
     */
    private $articleId;

    /**
     * @var bool
     *
     * @ORM\Column(name="is_read", type="boolean", options={"default":0, "comment":"is read 1 0"})
     */
    private $isRead;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;
}

